<template>
  <div class="first">
      <div class="left">
          <div class="nav navactive">
              <img src="@/assets/image/employment/jianli_1.png" alt="">
              <p>基本信息</p>
          </div>
          <div class="nav">
              <img src="@/assets/image/employment/jianli_1.png" alt="">
              <p>基本信息</p>
          </div>
          <div class="nav">
              <img src="@/assets/image/employment/jianli_1.png" alt="">
              <p>基本信息</p>
          </div>
          <div class="nav">
              <img src="@/assets/image/employment/jianli_1.png" alt="">
              <p>基本信息</p>
          </div>
          <div class="nav">
              <img src="@/assets/image/employment/jianli_1.png" alt="">
              <p>基本信息</p>
          </div>
          <div class="nav">
              <img src="@/assets/image/employment/jianli_1.png" alt="">
              <p>基本信息</p>
          </div>
      </div>
      <div class="right">
          <div class="infomation">
              <div class="title">
                  <p class="text">个人中心</p>
              </div>
              <div class="infomationcontent">
                  <a-form :hideRequiredMark='true' :labelCol='{span: 3, offset: 12}' labelAlign="left">
                    <a-form-item v-bind="formItemLayout" label="姓名:">
                        <a-input placeholder="请输入姓名"/>
                    </a-form-item>
                    <a-form-item v-bind="formItemLayout" label="性别:">
                        <div class="sex">
                            <p class="sexaction">男</p>
                            <p>女</p>
                        </div>
                    </a-form-item>
                    <a-form-item v-bind="formItemLayout" label="邮箱:">
                        <a-input placeholder="请输入邮箱"/>
                    </a-form-item>
                    <a-form-item v-bind="formItemLayout" label="手机号码:">
                        <a-input placeholder="请输入手机号码"/>
                    </a-form-item>
                    <a-form-item v-bind="formItemLayout" label="出生如期:">
                        <a-date-picker :inputReadOnly="true" style="width:296px;" placeholder="请选择出生年月日" format="YYYY-MM-DD" >
                            <a-icon slot="suffixIcon" type="down" />
                        </a-date-picker>
                    </a-form-item>
                    <a-form-item v-bind="formItemLayouttime" style="display: flex" label="现居住地:">
                        <a-cascader :options="options" style="width:300px" placeholder="请选择您的城市" @change="onChange" />
                        <a-input style="width:300px;margin-left:20px;" placeholder="请输入详细地址"/>
                    </a-form-item>
                    <a-form-item v-bind="formItemLayout" label="最高学历:">
                        <a-select placeholder="请选择您的最高学历" style="width: 296px" @change="handleChange">
                            <a-select-option value="jack">
                                Jack
                            </a-select-option>
                            <a-select-option value="lucy">
                                Lucy
                            </a-select-option>
                            <a-select-option value="disabled" disabled>
                                Disabled
                            </a-select-option>
                            <a-select-option value="Yiminghe">
                                yiminghe
                            </a-select-option>
                        </a-select>
                    </a-form-item>
                    <a-form-item v-bind="formItemLayout" label="政治面貌:">
                        <a-select placeholder="请选择您的政治面貌" style="width: 296px" @change="handleChange">
                            <a-select-option value="jack">
                                Jack
                            </a-select-option>
                            <a-select-option value="lucy">
                                Lucy
                            </a-select-option>
                            <a-select-option value="disabled" disabled>
                                Disabled
                            </a-select-option>
                            <a-select-option value="Yiminghe">
                                yiminghe
                            </a-select-option>
                        </a-select>
                    </a-form-item>
                    <a-form-item v-bind="formItemLayout" label="残疾类别/等级：">
                        <a-select placeholder="请选择残疾类别/类型" style="width: 296px" @change="handleChange">
                            <a-select-option value="jack">
                                Jack
                            </a-select-option>
                            <a-select-option value="lucy">
                                Lucy
                            </a-select-option>
                            <a-select-option value="disabled" disabled>
                                Disabled
                            </a-select-option>
                            <a-select-option value="Yiminghe">
                                yiminghe
                            </a-select-option>
                        </a-select>
                    </a-form-item>
                    <a-form-item v-bind="formItemLayout" class="textarea" label="残疾说明：">
                        <a-textarea placeholder="Basic usage" :rows="4" />
                    </a-form-item>
                    <a-form-item v-bind="formItemLayout" label="求职状态：">
                        <a-select placeholder="请选择您的求职状态" style="width: 296px" @change="handleChange">
                            <a-select-option value="jack">
                                Jack
                            </a-select-option>
                            <a-select-option value="lucy">
                                Lucy
                            </a-select-option>
                            <a-select-option value="disabled" disabled>
                                Disabled
                            </a-select-option>
                            <a-select-option value="Yiminghe">
                                yiminghe
                            </a-select-option>
                        </a-select>
                    </a-form-item>
                </a-form>
              </div>
              <div class="title">
                  <p class="text">求职意向</p>
                  <div class="func">
                      <img src="@/assets/image/employment/add.png" alt="">
                      <p>添加求职意向</p>
                  </div>
              </div>
              <div class="workThink">
                  <a-form :hideRequiredMark='true' labelAlign="left">
                      <a-form-item v-bind="formItemLayouts" label="期望职位:">
                        <a-input v-model="workList[0].title" placeholder="请输入期望职位"/>
                      </a-form-item>
                      <a-form-item v-bind="formItemLayouts" label="期望薪资:">
                        <a-select placeholder="最低" style="width: 93px" @change="handleChange">
                            <a-select-option value="jack">
                                Jack
                            </a-select-option>
                            <a-select-option value="lucy">
                                Lucy
                            </a-select-option>
                            <a-select-option value="disabled" disabled>
                                Disabled
                            </a-select-option>
                            <a-select-option value="Yiminghe">
                                yiminghe
                            </a-select-option>
                        </a-select>
                        <span style="display:inline-block;margin:0 10px;color: #D8D8D8;">—</span>
                        <a-select placeholder="最高" style="width: 93px" @change="handleChange">
                            <a-select-option value="jack">
                                Jack
                            </a-select-option>
                            <a-select-option value="lucy">
                                Lucy
                            </a-select-option>
                            <a-select-option value="disabled" disabled>
                                Disabled
                            </a-select-option>
                            <a-select-option value="Yiminghe">
                                yiminghe
                            </a-select-option>
                        </a-select>
                      </a-form-item>
                      <a-form-item v-bind="formItemLayouts" label="期望行业:">
                        <a-select placeholder="请选择您期望行业，如：产品经理" style="width: 675px" @change="handleChange">
                            <a-select-option value="jack">
                                Jack
                            </a-select-option>
                            <a-select-option value="lucy">
                                Lucy
                            </a-select-option>
                            <a-select-option value="disabled" disabled>
                                Disabled
                            </a-select-option>
                            <a-select-option value="Yiminghe">
                                yiminghe
                            </a-select-option>
                        </a-select>
                      </a-form-item>
                      <a-form-item v-bind="formItemLayout" label="性别:">
                        <div class="nav">
                            <p class="navaction">全职</p>
                            <p>兼职</p>
                            <p>实习</p>
                        </div>
                    </a-form-item>
                  </a-form>
              </div>
              <div class="title">
                  <p class="text">教育经历</p>
                  <div class="func">
                      <img src="@/assets/image/employment/add.png" alt="">
                      <p>添加教育经历</p>
                  </div>
              </div>
              <div class="schoolList">
                  <a-form :hideRequiredMark='true' labelAlign="left">
                      <a-form-item v-bind="formItemLayouts" label="学校名称:">
                        <a-input style="width:560px" placeholder="请输入学校名称"/>
                      </a-form-item>
                      <a-form-item v-bind="formItemLayouts" label="最高学历:">
                        <a-select placeholder="请选择您的最高学历" style="width: 197px" @change="handleChange">
                            <a-select-option value="jack">
                                Jack
                            </a-select-option>
                            <a-select-option value="lucy">
                                Lucy
                            </a-select-option>
                            <a-select-option value="disabled" disabled>
                                Disabled
                            </a-select-option>
                            <a-select-option value="Yiminghe">
                                yiminghe
                            </a-select-option>
                        </a-select>
                      </a-form-item>
                      <a-form-item v-bind="formItemLayouts" label="专业名称:">
                        <a-input style="width:197px" placeholder="请输入专业名称"/>
                      </a-form-item>
                      <a-form-item v-bind="formItemLayouttime" label="在校时间:">
                        <a-date-picker :inputReadOnly="true" style="width:126px;" placeholder="入学时间" format="YYYY-MM-DD" >
                            <a-icon slot="suffixIcon" type="down" />
                        </a-date-picker>
                        <span style="display:inline-block;margin:0 10px;color: #D8D8D8;">—</span>
                        <a-date-picker :inputReadOnly="true" style="width:126px;" placeholder="毕业时间" format="YYYY-MM-DD" >
                            <a-icon slot="suffixIcon" type="down" />
                        </a-date-picker>
                      </a-form-item>
                      <a-form-item v-bind="formItemLayout" class="textarea" label="在校描述：">
                        <a-textarea placeholder="可对您在校期间所学专业，所获得奖项，学习成果进行简单的描述" :rows="4" />
                      </a-form-item>
                  </a-form>
              </div>
              <div class="title">
                  <p class="text">工作经历</p>
                  <div class="func">
                      <img src="@/assets/image/employment/add.png" alt="">
                      <p>添加工作经历</p>
                  </div>
              </div>
              <div class="workList">
                  <a-form :hideRequiredMark='true' labelAlign="left">
                      <a-form-item v-bind="formItemLayouts" label="公司名称:">
                        <a-input style="width:560px" placeholder="请输入公司名称"/>
                      </a-form-item>
                      <a-form-item v-bind="formItemLayouts" label="所属行业:">
                        <a-select placeholder="请选择所属行业" style="width: 197px" @change="handleChange">
                            <a-select-option value="jack">
                                Jack
                            </a-select-option>
                            <a-select-option value="lucy">
                                Lucy
                            </a-select-option>
                            <a-select-option value="disabled" disabled>
                                Disabled
                            </a-select-option>
                            <a-select-option value="Yiminghe">
                                yiminghe
                            </a-select-option>
                        </a-select>
                      </a-form-item>
                      <a-form-item v-bind="formItemLayouts" label="职位名称:">
                        <a-input style="width:197px" placeholder="请输入您的职位名称"/>
                      </a-form-item>
                      <a-form-item v-bind="formItemLayouttime" label="工作时间:">
                        <a-date-picker :inputReadOnly="true" style="width:126px;" placeholder="入职时间" format="YYYY-MM-DD" >
                            <a-icon slot="suffixIcon" type="down" />
                        </a-date-picker>
                        <span style="display:inline-block;margin:0 10px;color: #D8D8D8;">—</span>
                        <a-date-picker :inputReadOnly="true" style="width:126px;" placeholder="离职时间" format="YYYY-MM-DD" >
                            <a-icon slot="suffixIcon" type="down" />
                        </a-date-picker>
                      </a-form-item>
                      <a-form-item v-bind="formItemLayout" class="textarea" label="工作描述：">
                        <a-textarea placeholder="请对该份工作的工作内容进行简单描述" :rows="4" />
                      </a-form-item>
                  </a-form>
              </div>
              <div class="title">
                  <p class="text">技术特长</p>
              </div>
              <div class="expertise">
                  <a-form :hideRequiredMark='true' labelAlign="left">
                      <a-form-item v-bind="formItemLayouttextarea" class="textarea" label="技术描述：">
                        <a-textarea placeholder="请对您掌握的技术特长、所获得的技能证书进行描述" :rows="4" />
                      </a-form-item>
                  </a-form>
              </div>
              <div class="title">
                  <p class="text">自我评价</p>
              </div>
              <div class="evaluation">
                  <a-form :hideRequiredMark='true' style="margin:0;" labelAlign="left">
                      <a-form-item v-bind="formItemLayouttextarea" class="textarea" label="评价内容：">
                        <a-textarea placeholder="请对您自身的性格、特点、能力等进行评价" :rows="4" />
                      </a-form-item>
                  </a-form>
              </div>
          </div>
      </div>
  </div>
</template>

<script>
import moment from 'moment';
import 'moment/locale/zh-cn';
export default {
    data(){
        return {
            workList:[{
                title:'',//期望职位
                smallManey:'',//最低薪资
                mallManey:'',//最高薪资
                type:'',//期望行业
                workType:'',//工作性质
            }],
            moment,
            formItemLayout: {
                labelCol: {
                xs: { span: 6 },
                sm: { span: 3 },
                },
                wrapperCol: {
                xs: { span: 24 },
                sm: { span: 8 },
                },
            },
            formItemLayouts: {
                labelCol: {
                xs: { span: 6 },
                sm: { span: 3 },
                },
                wrapperCol: {
                xs: { span: 24 },
                sm: { span: 10 },
                },
            },
            formItemLayouttime:{
                labelCol: {
                xs: { span: 6 },
                sm: { span: 3 },
                },
                wrapperCol: {
                xs: { span: 24 },
                sm: { span: 20 },
                },
            },
            formItemLayouttextarea:{
                labelCol: {
                xs: { span: 6 },
                sm: { span: 3 },
                },
                wrapperCol: {
                xs: { span: 2 },
                sm: { span: 20 },
                },
            },
            options: [
                {
                value: 'zhejiang',
                label: 'Zhejiang',
                children: [
                    {
                    value: 'hangzhou',
                    label: 'Hangzhou',
                    children: [
                        {
                        value: 'xihu',
                        label: 'West Lake',
                        },
                    ],
                    },
                ],
                },
                {
                    value: 'jiangsu',
                    label: 'Jiangsu',
                    children: [
                        {
                        value: 'nanjing',
                        label: 'Nanjing',
                        children: [
                            {
                                value: 'zhonghuamen',
                                label: 'Zhong Hua Men',
                            },
                        ],
                        },
                    ],
                },
            ],
        }
    },
    beforeCreate() {
        
    },
    methods: {
        onChange(value) {
            return value;
            // console.log(value);
        },
    },
}
</script>

<style scoped lang="less">
    .first{
        width: 1200px;
        margin: 0 auto;
        padding-bottom: 50px;
        display: flex;
        justify-content: space-between;
        padding-top: 32px;
        .left{
            .nav{
                display: flex;
                padding: 15px 40px;
                background: #F8F8F8;
                img{
                    width: 18px;
                    height: 18px;
                    margin-right: 16px;
                }
                p{
                    color: #666666;
                    font-size: 15px;
                    line-height: 21px;
                }
            }
            .navactive{
                border-left: 2px solid #FB6D00;
                box-sizing: border-box;
                padding-left: 38px;
                background-color: #FFFFFF;
                color: #FB6D00;
                font-size: 15px;
                line-height: 21px;
                font-weight: bold;
            }
        }
        .right{
            width: 970px;
            .title{
                display: flex;
                align-items: center;
                justify-content: space-between;
                .text{
                    color: #333333;
                    font-size: 22px;
                    line-height: 30px;
                    font-weight: bold;
                }
                .func{
                    display: flex;
                    img{
                        width: 18px;
                        height: 18px;
                    }
                    p{
                        color: #666666;
                        font-size: 13px;
                        line-height: 18px;
                        margin-left: 8px;
                    }
                }
            }
            .infomationcontent{
                margin-top: 16px;
                background-color: #F8F8F8;
                padding: 33px 40px 40px;
                margin-bottom: 40px;
                .sex{
                    width: 300px;
                    display: flex;
                    p{
                        width: 110px;
                        height: 38px;
                        line-height: 38px;
                        text-align: center;
                        color: #cccccc;
                        background-color: #ffffff;
                        font-size: 14px;
                        border: 1px solid #cccccc;
                        margin-right: 24px;
                        cursor: pointer;
                        border-radius: 2px;
                    }
                    .sexaction{
                        background-image: url('~@/assets/image/employment/navback.png');
                        background-size: 100% 100%;
                        border: 0;
                        color: #FB6D00;
                    }
                }
            }
            /deep/.textarea{
                .ant-form-item-control{
                    width: 672px !important;
                }
            }
            .workThink{
                margin-top: 16px;
                background-color: #F8F8F8;
                padding: 33px 40px 40px;
                margin-bottom: 40px;
                .nav{
                    width: 600px;
                    display: flex;
                    p{
                        width: 110px;
                        height: 38px;
                        line-height: 38px;
                        text-align: center;
                        color: #cccccc;
                        background-color: #ffffff;
                        font-size: 14px;
                        border: 1px solid #cccccc;
                        margin-right: 24px;
                        cursor: pointer;
                        border-radius: 2px;
                    }
                    .navaction{
                        background-image: url('~@/assets/image/employment/navback.png');
                        background-size: 100% 100%;
                        border: 0;
                        color: #FB6D00;
                    }
                }
            }
            .schoolList{
                margin-top: 16px;
                background-color: #F8F8F8;
                padding: 33px 40px 40px;
                margin-bottom: 40px;
            }
            .workList,.expertise,.evaluation{
                margin-top: 16px;
                background-color: #F8F8F8;
                padding: 33px 40px 40px;
                margin-bottom: 40px;
            }
            .expertise,.evaluation{
                /deep/.ant-form-item{
                    margin: 0;
                }
            }
        }
    }
</style>